package com.away.transaction;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

@Service
@RocketMQMessageListener(topic = "transactionGroup",consumerGroup = "test_transaction_topic")
public class MessageConsumer implements RocketMQListener {
    @Override
    public void onMessage(Object o) {
        System.out.println("consumer message:"+o.toString());
    }
}
